﻿namespace InseSoft.Model.Entities
{
    public class Empresa: EntidadCatalogo
    {
        #region Private Members

        private string cedula;
        private string direccion;
        private string telefono;
        private string fax;
        private string email;

        private static Empresa emptyInstance;

        #endregion

        #region Public Properties

        public static Empresa EmptyInstance
        {
            get { return emptyInstance ?? (emptyInstance = new Empresa()); }
        }
       
        public virtual string Cedula
        {
            get { return cedula; }
            set
            {   
                CheckLength("Cedula", value, 20);
                cedula = value;
            }
        }

        public virtual string Direccion
        {
            get { return direccion; }
            set
            {   
                CheckLength("Direccion", value, 500);
                direccion = value;
            }
        }

        public virtual string Telefono
        {
            get { return telefono; }
            set
            {   
                CheckLength("Telefono", value, 20);
                telefono = value;
            }
        }

        public virtual string Fax
        {
            get { return fax; }
            set
            {   
                CheckLength("Fax", value, 20);
                fax = value;
            }
        }

        public virtual string Email
        {
            get { return email; }
            set
            {   
                CheckLength("Email", value, 50);
                email = value;
            }
        }

        public virtual decimal Utilidad { get; set; }

        public virtual decimal ImpVenta { get; set; }

        #endregion
    }
}
